<div class="container ">
	<div class="sharestore">
		<div>
			<h3 class="mb10">{lang tip_search}</h3>
		</div>
		<div>
		
			<form name="dsearchform" class="dsearchform" action="{url search/pin}" method="post" enctype="application/x-www-form-urlencoded">
			<div class="input-append">
				<input class="span6" type="text" name="keyword" id="keyword" value="$keyword" placeholder="{lang tip_search}">
				<select id="searchtype" class="span2">
					<option value="pin" {if $method=='pin'}selected{/if}>{$action}{lang search_pin}</option>
					<option value="user" {if $method=='user'}selected{/if}>{lang search_user}</option>
					<option value="store" {if $method=='store'}selected{/if}>{lang search_store}</option>
					<option value="topic" {if $method=='topic'}selected{/if}>{lang search_topic}</option>
					<option value="group" {if $method=='group'}selected{/if}>{lang search_group}</option>
				</select>
				<button type="submit" class="ml20 btn btn-primary submit-btn" data-loading-text="{lang tip_loading}">{lang submit}</button>
			</div>
			</form>
			<script>
				$(document).ready(function() {
					$('#searchtype').change(function (){
						if(this.value=='pin'){
							$('.dsearchform').attr('action','{url search/pin}');
						}else if(this.value=='user'){
							$('.dsearchform').attr('action','{url search/user}');
						}else if(this.value=='store'){
							$('.dsearchform').attr('action','{url search/store}');
						}else if(this.value=='topic'){
							$('.dsearchform').attr('action','{url search/topic}');
						}else if(this.value=='group'){
							$('.dsearchform').attr('action','{url search/group}');
						}
					});
				});
			</script>
		</div>
	</div>
</div>